c# get all namespaces in assembly

89

c# get all namespaces in assembly -

namespace test
{
    public class Class1
    {
        public string[] AllNameSpace()
        {
            return Assembly.GetExecutingAssembly().GetTypes().Select(x => x.Namespace).ToArray();
        }
    }
}

Comments

Submit
0 Comments